package com.token.service;

import com.token.bean.Admin;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpSession;
import java.util.Map;

/**
 * <p>
 * 后台 服务类
 * </p>
 *
 * @author 冯政尚
 * @since 2019-07-30
 */
public interface AdminService extends IService<Admin> {

    boolean login(String userName, String passWord, HttpSession session);

    // 发送短信验证码 并存入缓存
    Map SendSMS(Long phone);

    //和cache中的验证码进行比对
    boolean equalsCache(String code, String phone);

}
